import { Navigate } from "react-router-dom";

export default function Auth(props: any)  {
    return localStorage.getItem('token') ? props.children : <Navigate to="/my/login"></Navigate>
}